package com.dyrj.api.result;

/**
 * json返回结果对象
 * @param <T>  数据对象类型
 */
public class JsonResult<T> {

    private boolean success;//是否成功  true 成功  false 失败

    private String messsage; //消息

    private T data;//返回数据

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMesssage() {
        return messsage;
    }

    public void setMesssage(String messsage) {
        this.messsage = messsage;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
